package com.ynny.dao;

import com.ynny.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    User selectUserById(Integer id);

    List<User> selectAllUsers();

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(Integer id);

    User selectUserByUserName(String username);




}
